<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Building a BREW applet for the physical device</title>
    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
    <link rel="up" href="build_brew.html" title="Chapter 25.  Building Berkeley DB for the BREW simulator" />
    <link rel="prev" href="build_brew.html" title="Chapter 25.  Building Berkeley DB for the BREW simulator" />
    <link rel="next" href="build_s60.html" title="Chapter 26.  Building Berkeley DB for S60" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Building a BREW applet for the physical device</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="build_brew.html">Prev</a> </td>
          <th width="60%" align="center">Chapter 25. 
		Building Berkeley DB for the BREW simulator
        </th>
          <td width="20%" align="right"> <a accesskey="n" href="build_s60.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title" style="clear: both"><a id="id1628252"></a>Building a BREW applet for the physical device</h2>
          </div>
        </div>
      </div>
      <p>The binaries linked with the Berkeley DB library for the BREW simulator are
not target files that can run on the physical device.  In order to build
for the physical device, an ARM compiler is needed: the recommended ARM
compiler is ARM Developer Suite 1.2.</p>
      <p>The steps for building a BREW applet for the physical device are as
follows:</p>
      <div class="orderedlist">
        <ol type="1">
          <li>Set the target BREW Applet project as the active project.</li>
          <li>Select "Generate ARM Make file" in the BREW tool bar for VC6, and a make
file will be generated (if this step does not work, confirm your ADS was
correctly installed).</li>
          <li>The Berkeley DB library must then be manually added to this make file.  See the
<code class="filename">build_brew\bdbread.mak</code> file in the Berkeley DB distribution for an
example.</li>
          <li>Select <span class="emphasis"><em>Tools -&gt; BREW Application 'Make'</em></span> to build.</li>
        </ol>
      </div>
      <p>The target .mod file will be created in the build directory, and this
is the file which should be uploaded to the physical device.</p>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="build_brew.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="build_brew.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="build_s60.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Chapter 25. 
		Building Berkeley DB for the BREW simulator
         </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> Chapter 26. 
		Building Berkeley DB for S60
        </td>
        </tr>
      </table>
    </div>
  </body>
</html>
